home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / Common / Explosions.script < prev    next >
Text File  |  2001-11-08  |  14KB  |  476 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. // German weapon
  11. class CGermanTankBulletExplosion
  12. {
  13.   final static string CID = "SphericExplosion";
  14.  
  15.   string ExplosionEffect = "EFFECTID_TankGunBulletHitEffect";
  16.   string ExplosionSound  = "SOUNDID_TankGunBulletHitSound";
  17.   float  ExplosionDamage = 200.0;
  18.   float  ExplosionRadius = 5.0;
  19. }
  20.  
  21. class CGermanAntiairBulletExplosion
  22. {
  23.   final static string CID = "DotExplosion";
  24.  
  25.   string ExplosionEffect = "";
  26.   string ExplosionSound  = "";
  27.   float  ExplosionDamage = 25.0;
  28. }
  29.  
  30. class CGermanAJeepBulletExplosion
  31. {
  32.   final static string CID = "DotExplosion";
  33.  
  34.   string ExplosionEffect = "";
  35.   string ExplosionSound  = "";
  36.   float  ExplosionDamage = 25.0;
  37. }
  38.  
  39. class CGermanGunTowerBulletExplosion
  40. {
  41.   final static string CID = "DotExplosion";
  42.  
  43.   string ExplosionEffect = "";
  44.   string ExplosionSound  = "";
  45.   float  ExplosionDamage = 25.0;
  46. }
  47.  
  48. class CGermanParatrooperBulletExplosion
  49. {
  50.   final static string CID = "DotExplosion";
  51.  
  52.   string ExplosionEffect = "";
  53.   string ExplosionSound  = "";
  54.   float  ExplosionDamage = 10.0;
  55. }
  56.  
  57. class CGermenArmedSHouseBulletExplosion
  58. {
  59.   final static string CID = "DotExplosion";
  60.  
  61.   string ExplosionEffect = "";
  62.   string ExplosionSound  = "";
  63.   float  ExplosionDamage = 25.0;
  64. }
  65.  
  66. class CGermenArmedDHouseBulletExplosion
  67. {
  68.   final static string CID = "DotExplosion";
  69.  
  70.   string ExplosionEffect = "";
  71.   string ExplosionSound  = "";
  72.   float  ExplosionDamage = 25.0;
  73. }
  74.  
  75. class CGermanArmedSandBagsBulletExplosion
  76. {
  77.   final static string CID = "DotExplosion";
  78.  
  79.   string ExplosionEffect = "";
  80.   string ExplosionSound  = "";
  81.   float  ExplosionDamage = 25.0;
  82. }
  83.  
  84. class CGermanPanzerFaustExplosion
  85. {
  86.   final static string CID  = "WaveExplosion";
  87.  
  88.   string ExplosionEffect   = "EFFECTID_PanzerFaustExplosionEffect";
  89.   string ExplosionSound    = "SOUNDID_PanzerFaustExplosionSound";
  90.   float  ExplosionDamage   = 1000.0;
  91.   float  ExplosionRadius   = 5.0;
  92.   float  ExplosionDuration = 1.0;
  93. }
  94.  
  95. class CGermanFlakBulletExplosion
  96. {
  97.   final static string CID = "SphericExplosion";
  98.  
  99.   string ExplosionEffect = "EFFECTID_FlakGunBulletHitEffect";
  100.   string ExplosionSound  = "SOUNDID_FlakGunBulletHitSound";
  101.   float  ExplosionDamage = 100.0;
  102.   float  ExplosionRadius = 2.0;
  103. }
  104.  
  105. class CGermanMobileFlakBulletExplosion
  106. {
  107.   final static string CID = "SphericExplosion";
  108.  
  109.   string ExplosionEffect = "EFFECTID_FlakGunBulletHitEffect";
  110.   string ExplosionSound  = "SOUNDID_FlakGunBulletHitSound";
  111.   float  ExplosionDamage = 100.0;
  112.   float  ExplosionRadius = 2.0;
  113. }
  114.  
  115.  
  116.  
  117.  
  118. // Soviet weapon
  119. class CSovietTankBulletExplosion
  120. {
  121.   final static string CID = "SphericExplosion";
  122.  
  123.   string ExplosionEffect = "EFFECTID_TankGunBulletHitEffect";
  124.   string ExplosionSound  = "SOUNDID_TankGunBulletHitSound";
  125.   float  ExplosionDamage = 200.0;
  126.   float  ExplosionRadius = 5.0;
  127. }
  128.  
  129. class CSovietAJeepBulletExplosion
  130. {
  131.   final static string CID = "DotExplosion";
  132.  
  133.   string ExplosionEffect = "";
  134.   string ExplosionSound  = "";
  135.   float  ExplosionDamage = 25.0;
  136. }
  137.  
  138. class CSovietGunTowerBulletExplosion
  139. {
  140.   final static string CID = "DotExplosion";
  141.  
  142.   string ExplosionEffect = "";
  143.   string ExplosionSound  = "";
  144.   float  ExplosionDamage = 25.0;
  145. }
  146.  
  147. class CSovietKatushaRocketExplosion
  148. {
  149.   final static string CID  = "SphericExplosion";
  150.  
  151.   string ExplosionEffect   = "EFFECTID_KatushaRocketExplosionEffect";
  152.   string ExplosionSound    = "SOUNDID_KatushaRocketExplosionSound";
  153.   float  ExplosionDamage   = 1500.0;
  154.   float  ExplosionRadius   = 25.0;
  155. }
  156.  
  157. class CSovietAirBombExplosion
  158. {
  159.   final static string CID  = "SphericExplosion";
  160.  
  161.   string ExplosionEffect   = "EFFECTID_AirBombExplosionEffect";
  162.   string ExplosionSound    = "SOUNDID_AirBombExplosionSound";
  163.   float  ExplosionDamage   = 5000.0;
  164.   float  ExplosionRadius   = 50.0;
  165. }
  166.  
  167.  
  168.  
  169.  
  170. // Player weapon
  171. class CHelicopterBulletExplosion
  172. {
  173.   final static string CID = "DotExplosion";
  174.  
  175.   string ExplosionEffect = "";
  176.   string ExplosionSound  = "";
  177.   float  ExplosionDamage = 100.0;
  178. }
  179.  
  180. class CHelicopterRocketExplosion
  181. {
  182.   final static string CID  = "SphericExplosion";
  183.  
  184.   string ExplosionEffect   = "EFFECTID_MissileExplosionEffect";
  185.   string ExplosionSound    = "SOUNDID_HelicopterRocketExplosionSound";
  186.   float  ExplosionDamage   = 1500.0;
  187.   float  ExplosionRadius   = 10.0;
  188. }
  189.  
  190. class CHelicopterMissileExplosion
  191. {
  192.   final static string CID  = "SphericExplosion";
  193.  
  194.   string ExplosionEffect   = "EFFECTID_MissileExplosionEffect";
  195.   string ExplosionSound    = "SOUNDID_HelicopterMissileExplosionSound";
  196.   float  ExplosionDamage   = 3000.0;
  197.   float  ExplosionRadius   = 10.0;
  198. }
  199.  
  200.  
  201.  
  202.  
  203. // Units explosions
  204. class CHelicopterExplosion
  205. {
  206.   final static string CID  = "SphericExplosion";
  207.  
  208.   string ExplosionEffect   = "EFFECTID_HelicopterExplosionEffect";
  209.   string ExplosionSound    = "SOUNDID_HelicopterExplosionSound";
  210.   float  ExplosionDamage   = 3000.0;
  211.   float  ExplosionRadius   = 20.0;
  212. }
  213.  
  214. class CAJeepExplosion
  215. {
  216.   final static string CID  = "SphericExplosion";
  217.  
  218.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  219.   string ExplosionSound    = "SOUNDID_AJeepExplosionSound";
  220.   float  ExplosionDamage   = 1000.0;
  221.   float  ExplosionRadius   = 5.0;
  222. }
  223.  
  224. class CAntiairExplosion
  225. {
  226.   final static string CID  = "SphericExplosion";
  227.  
  228.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  229.   string ExplosionSound    = "SOUNDID_AntiairExplosionSound";
  230.   float  ExplosionDamage   = 500.0;
  231.   float  ExplosionRadius   = 3.0;
  232. }
  233.  
  234. class CJeepExplosion
  235. {
  236.   final static string CID  = "SphericExplosion";
  237.  
  238.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  239.   string ExplosionSound    = "SOUNDID_JeepExplosionSound";
  240.   float  ExplosionDamage   = 10.0;
  241.   float  ExplosionRadius   = 1.5;
  242. }
  243.  
  244. class CTankExplosion
  245. {
  246.   final static string CID  = "SphericExplosion";
  247.  
  248.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  249.   string ExplosionSound    = "SOUNDID_TankExplosionSound";
  250.   float  ExplosionDamage   = 500.0;
  251.   float  ExplosionRadius   = 3.0;
  252. }
  253.  
  254. class CFlakExplosion
  255. {
  256.   final static string CID  = "SphericExplosion";
  257.  
  258.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  259.   string ExplosionSound    = "SOUNDID_FlakExplosionSound";
  260.   float  ExplosionDamage   = 500.0;
  261.   float  ExplosionRadius   = 3.0;
  262. }
  263.  
  264. class CMobileFlakExplosion
  265. {
  266.   final static string CID  = "SphericExplosion";
  267.  
  268.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  269.   string ExplosionSound    = "SOUNDID_MobileFlakExplosionSound";
  270.   float  ExplosionDamage   = 500.0;
  271.   float  ExplosionRadius   = 3.0;
  272. }
  273.  
  274. class CTruckExplosion
  275. {
  276.   final static string CID  = "SphericExplosion";
  277.  
  278.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  279.   string ExplosionSound    = "SOUNDID_TruckExplosionSound";
  280.   float  ExplosionDamage   = 10.0;
  281.   float  ExplosionRadius   = 1.5;
  282. }
  283.  
  284. class CRefuellerExplosion
  285. {
  286.   final static string CID  = "WaveExplosion";
  287.  
  288.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  289.   string ExplosionSound    = "SOUNDID_RefuellerExplosionSound";
  290.   float  ExplosionDamage   = 2000.0;
  291.   float  ExplosionRadius   = 20.0;
  292.   float  ExplosionDuration = 1.5;
  293. }
  294.  
  295. class CKatushaExplosion
  296. {
  297.   final static string CID  = "SphericExplosion";
  298.  
  299.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  300.   string ExplosionSound    = "SOUNDID_KatushaExplosionSound";
  301.   float  ExplosionDamage   = 10.0;
  302.   float  ExplosionRadius   = 1.5;
  303. }
  304.  
  305. class CSandBagsExplosion
  306. {
  307.   final static string CID  = "SphericExplosion";
  308.  
  309.   string ExplosionEffect   = "EFFECTID_UnitExplosionEffect";
  310.   string ExplosionSound    = "SOUNDID_SandBagsExplosionSound";
  311.   float  ExplosionDamage   = 500.0;
  312.   float  ExplosionRadius   = 10.0;
  313. }
  314.  
  315. class CGunTowerExplosion
  316. {
  317.   final static string CID  = "SphericExplosion";
  318.  
  319.   string ExplosionEffect   = "EFFECTID_BuildingExplosionEffect";
  320.   string ExplosionSound    = "SOUNDID_GunTowerExplosionSound";
  321.   float  ExplosionDamage   = 500.0;
  322.   float  ExplosionRadius   = 10.0;
  323. }
  324.  
  325.  
  326. // Buildings
  327. class CBarrelExplosion
  328. {
  329.   final static string CID  = "WaveExplosion";
  330.  
  331.   string ExplosionEffect   = "EFFECTID_SmallBarrelExplosionEffect";
  332.   string ExplosionSound    = "SOUNDID_BarrelExplosionSound";
  333.   float  ExplosionDamage   = 1000.0;
  334.   float  ExplosionRadius   = 25.0;
  335.   float  ExplosionDuration = 2.0;
  336. }
  337.  
  338. class CBarrelStackExplosion
  339. {
  340.   final static string CID  = "WaveExplosion";
  341.  
  342.   string ExplosionEffect   = "EFFECTID_SmallBarrelExplosionEffect";
  343.   string ExplosionSound    = "SOUNDID_BarrelExplosionSound";
  344.   float  ExplosionDamage   = 2000.0;
  345.   float  ExplosionRadius   = 35.0;
  346.   float  ExplosionDuration = 2.0;
  347. }
  348.  
  349. class CCisternExplosion
  350. {
  351.   final static string CID  = "WaveExplosion";
  352.  
  353.   string ExplosionEffect   = "EFFECTID_CisternExplosionEffect";
  354.   string ExplosionSound    = "SOUNDID_CisternExplosionSound";
  355.   float  ExplosionDamage   = 7500.0;
  356.   float  ExplosionRadius   = 150;
  357.   float  ExplosionDuration = 5.0;
  358. }
  359.  
  360. class CAmmoBoxExplosion
  361. {
  362.   final static string CID  = "WaveExplosion";
  363.  
  364.   string ExplosionEffect   = "EFFECTID_AmmoBoxExplosionEffect";
  365.   string ExplosionSound    = "SOUNDID_AmmoBoxExplosionSound";
  366.   float  ExplosionDamage   = 7500.0;
  367.   float  ExplosionRadius   = 150;
  368.   float  ExplosionDuration = 5.0;
  369. }
  370.  
  371. class CHangarExplosion
  372. {
  373.   final static string CID  = "SphericExplosion";
  374.  
  375.   string ExplosionEffect   = "EFFECTID_HangarExplosionEffect";
  376.   string ExplosionSound    = "SOUNDID_HangarExplosionSound";
  377.   float  ExplosionDamage   = 3000.0;
  378.   float  ExplosionRadius   = 150.0;
  379. }
  380.  
  381. class CBuildingExplosion
  382. {
  383.   final static string CID  = "SphericExplosion";
  384.  
  385.   string ExplosionEffect   = "EFFECTID_BuildingExplosionEffect";
  386.   string ExplosionSound    = "SOUNDID_BuildingExplosionSound";
  387.   float  ExplosionDamage   = 500.0;
  388.   float  ExplosionRadius   = 20.0;
  389. }
  390.  
  391. class CItemExplosion
  392. {
  393.   final static string CID  = "SphericExplosion";
  394.  
  395.   string ExplosionEffect   = "EFFECTID_ItemExplosionEffect";
  396.   string ExplosionSound    = "SOUNDID_ItemExplosionSound";
  397.   float  ExplosionDamage   = 5.0;
  398.   float  ExplosionRadius   = 5.0;
  399. }
  400.  
  401.  
  402.  
  403.  
  404. // Service
  405. class CFireBallExplosion
  406. {
  407.   final static string CID  = "SphericExplosion";
  408.  
  409.   string ExplosionEffect   = "EFFECTID_FireBallExplosionEffect";
  410.   string ExplosionSound    = "SOUNDID_FireBallExplosionSound";
  411.   float  ExplosionDamage   = 5000.0;
  412.   float  ExplosionRadius   = 30.0;
  413. }
  414.  
  415.  
  416.  
  417.  
  418. // Array
  419. class CExplosionsArray
  420. {
  421.   void CExplosionsArray()
  422.   {
  423.     CreatePattern("CGermanTankBulletExplosion", "EXPLID_GermanTankBulletExplosion");
  424.     CreatePattern("CGermanAntiairBulletExplosion", "EXPLID_GermanAntiairBulletExplosion");
  425.     CreatePattern("CGermanAJeepBulletExplosion", "EXPLID_GermanAJeepBulletExplosion");
  426.     CreatePattern("CGermanGunTowerBulletExplosion", "EXPLID_GermanGunTowerBulletExplosion");
  427.     CreatePattern("CGermanParatrooperBulletExplosion", "EXPLID_GermanParatrooperBulletExplosion");
  428.     CreatePattern("CGermenArmedSHouseBulletExplosion", "EXPLID_GermenArmedSHouseBulletExplosion");
  429.     CreatePattern("CGermenArmedDHouseBulletExplosion", "EXPLID_GermenArmedDHouseBulletExplosion");
  430.     CreatePattern("CGermanArmedSandBagsBulletExplosion", "EXPLID_GermanArmedSandBagsBulletExplosion");
  431.     CreatePattern("CGermanPanzerFaustExplosion", "EXPLID_GermanPanzerFaustExplosion");
  432.     CreatePattern("CGermanFlakBulletExplosion", "EXPLID_GermanFlakBulletExplosion");
  433.     CreatePattern("CGermanMobileFlakBulletExplosion", "EXPLID_GermanMobileFlakBulletExplosion");
  434.  
  435.     CreatePattern("CSovietTankBulletExplosion", "EXPLID_SovietTankBulletExplosion");
  436.     CreatePattern("CSovietAJeepBulletExplosion", "EXPLID_SovietAJeepBulletExplosion");
  437.     CreatePattern("CSovietGunTowerBulletExplosion", "EXPLID_SovietGunTowerBulletExplosion");
  438.     CreatePattern("CSovietKatushaRocketExplosion", "EXPLID_SovietKatushaRocketExplosion");
  439.     CreatePattern("CSovietAirBombExplosion", "EXPLID_SovietAirBombExplosion");
  440.  
  441.     CreatePattern("CHelicopterBulletExplosion", "EXPLID_HelicopterBulletExplosion");
  442.     CreatePattern("CHelicopterRocketExplosion", "EXPLID_HelicopterRocketExplosion");
  443.     CreatePattern("CHelicopterMissileExplosion", "EXPLID_HelicopterMissileExplosion");
  444.  
  445.     CreatePattern("CAJeepExplosion", "EXPLID_GermanAJeepExplosion");
  446.     CreatePattern("CAntiairExplosion", "EXPLID_GermanAntiairExplosion");
  447.     CreatePattern("CJeepExplosion", "EXPLID_GermanJeepExplosion");
  448.     CreatePattern("CTankExplosion", "EXPLID_GermanTankExplosion");
  449.     CreatePattern("CFlakExplosion", "EXPLID_GermanFlakExplosion");
  450.     CreatePattern("CMobileFlakExplosion", "EXPLID_GermanMobileFlakExplosion");
  451.     CreatePattern("CTruckExplosion", "EXPLID_GermanTruckExplosion");
  452.     CreatePattern("CRefuellerExplosion", "EXPLID_GermanRefuellerExplosion");
  453.     CreatePattern("CGunTowerExplosion", "EXPLID_GermanGunTowerExplosion");
  454.     CreatePattern("CSandBagsExplosion", "EXPLID_SandBagsExplosion");
  455.  
  456.     CreatePattern("CHelicopterExplosion", "EXPLID_HelicopterExplosion");
  457.  
  458.     CreatePattern("CTankExplosion", "EXPLID_SovietTankExplosion");
  459.     CreatePattern("CTruckExplosion", "EXPLID_SovietTruckExplosion");
  460.     CreatePattern("CGunTowerExplosion", "EXPLID_SovietGunTowerExplosion");
  461.     CreatePattern("CKatushaExplosion", "EXPLID_SovietKatushaExplosion");
  462.  
  463.     CreatePattern("CBarrelExplosion", "EXPLID_BarrelExplosion");
  464.     CreatePattern("CBarrelStackExplosion", "EXPLID_BarrelStackExplosion");
  465.     CreatePattern("CCisternExplosion", "EXPLID_CisternExplosion");
  466.     CreatePattern("CAmmoBoxExplosion", "EXPLID_AmmoBoxExplosion");
  467.     CreatePattern("CHangarExplosion", "EXPLID_HangarExplosion");
  468.  
  469.     CreatePattern("CBuildingExplosion", "EXPLID_BuildingExplosion");
  470.     CreatePattern("CItemExplosion", "EXPLID_ItemExplosion");
  471.  
  472.     CreatePattern("CFireBallExplosion", "EXPLID_FireBallExplosion");
  473.   }
  474. }
  475.  
  476.